from flask import Blueprint,requests,jsontify

from database import db
bp_goods = Blueprint('goods',__name__)

@bp_goods.route('/')
def Goods():
    sql = 'select * from cgoods'
    res = db.findall(sql)
    return jsontify({'code':200,'list':res})
